02. Basic UI in Unity

Basic UI in Unity

Course Asset

Project Assets

- Vacation Box model: Assets > UdacityVR > Art > Models > VacationBox > VacationBox.fbx

Video Addendum

Tip: You can save the Unity workspace layout and restore it any time. To save a layout, expand the Layout drop-down (found at the top right of the Toolbar) and choose Save Layout…, then name your new layout and save it. To restore the layout, choose it from the Layout drop-down.

At 5:13 min into the video

When the instructor clicks on the Canvas game object in the Hierarchy window:

  • In the Inspector window you will see that the values of the Rect Transform component cannot be modified (they are greyed out) and, most likely, that the instructor's Width and Height values are different from yours.
  • This is because when you create a new Canvas game object, the Render Mode of its Canvas component defaults to Screen Space - Overlay which dynamically resizes the values of the Rect Transform component depending on the available screen space.
  • While working in the Unity Editor, the available screen space is represented by the size of the Game view.

At 5:19 min into the video

When the instructor changes the Render Mode of the Canvas component from Screen Space - Overlay to World Space:

  • In the Inspector window you will see that the values of the Rect Transform component now can be modified (not greyed out).
  • This is because the Canvas game object is now rendered in 3D world space instead of 2D screen space.
  • For your project to better match up with the rest of the video, we recommend that you change your Width and Height values to match the instructor's values, i.e. 387 and 312 respectively.